import yagmail
import logging

def rz():
    logging.basicConfig(filename='asd.html', filemode='w+', level=logging.DEBUG, format='%(funcName)s -> %(asctime)s -> %(message)s')

def send_mail(f):
    mail = yagmail.SMTP(user='1098120615@qq.com', password='sqqpoyvhkrfdbace', host='smtp.qq.com', encoding='utf-8')
    mail.send(to='1098120615@qq.com', subject='A3mall购物车', contents='今日报告', attachments=f)